package com.decapre.zufangwang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.Calendar;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class House {
    int houseId;
    String houseTitle;
    int housingArea;
    int bedroomCount;
    int livingroomCount;
    int washroomCount;
    String decoration;
    @JsonFormat(pattern = "yyyy-MM-dd")
    Date pubDate;
    String description;
    int price;
    String imgUrl;
    List<District> districts;
}
